<?php

namespace UF\AccountBundle\Entity;
use Symfony\Component\Security\Core\User\UserInterface;
use Doctrine\ORM\Mapping as ORM;

/**
 * UF\AccountBundle\Entity\Account
 *
 * @ORM\Table()
 * @ORM\Entity
 */
class Account implements UserInterface {
	/**
	 * @var integer $id
	 *
	 * @ORM\Column(name="id", type="integer")
	 * @ORM\Id
	 * @ORM\GeneratedValue(strategy="AUTO")
	 */
	private $id;

	/**
	 * @var string $username
	 *
	 * @ORM\Column(name="username", type="string", length=255)
	 */
	private $username;

	/**
	 * @var text $description
	 *
	 * @ORM\Column(name="description", type="string", length=255)
	 */
	private $description;
	
	/**
	 * @var string $password
	 *
	 * @ORM\Column(name="password", type="string", length=255)
	 */
	private $password;

	/**
	 * @var string $roles
	 *
	 * @ORM\Column(name="roles", type="string", length=255)
	 */
	private $roles;

	/**
	 * Get id
	 *
	 * @return integer 
	 */
	public function getId() {
		return $this->id;
	}

	/**
	 * Set username
	 *
	 * @param string $username
	 */
	public function setUsername($username) {
		$this->username = $username;
	}

	/**
	 * Get username
	 *
	 * @return string 
	 */
	public function getUsername() {
		return $this->username;
	}
	
	/**
	 * Set description
	 *
	 * @param string $description
	 */
	public function setDescription($description) {
		$this->description = $description;
	}
	
	/**
	 * Get description
	 *
	 * @return string
	 */
	public function getDescription() {
		return $this->description;
	}

	/**
	 * Set password
	 *
	 * @param string $password
	 */
	public function setPassword($password) {
		$this->password = $password;
	}

	/**
	 * Get password
	 *
	 * @return string 
	 */
	public function getPassword() {
		return $this->password;
	}

	/**
	 * Set roles
	 *
	 * @param string $roles
	 */
	public function setRoles($roles) {
		$this->roles = $roles;
	}

	/**
	 * Get roles
	 *
	 * @return string
	 */
	public function getRoles() {
		return array($this->roles);
	}

	public function getSalt() {
		// TODO: Auto-generated method stub

	}
	public function eraseCredentials() {
		// TODO: Auto-generated method stub

	}
	public function equals(UserInterface $user) {
		// TODO: Auto-generated method stub

	}

}
